<?php

function cdia_port_register_portfolio(){
	
		$supports = array(
			'title',
			'editor',
			'thumbnail'
		);
		
		$labels = array(
			'name' => 'Portfolios',
			'singular_name' => 'Portfolio',
			'all_items' => 'All Portfolios',
			'add_new' => 'Add New Portfolio',
			'add_new_item' => 'Add New Portfolio',
			'edit_item' => 'New Portfolio',
			'view_item' => 'View Portfolio',
			'search_item' => 'Search Portfolios',
			'not_found' => 'No Portfolios Found',
			'not_found_in_trash' => 'No Portfolios Found in trash'
		
		);
	
		$portfolio_args = array(
			'public' => true, //show in admin interface
			'query_var' => 'portfolio', //for querying the database
			'rewrite' => array(
					'slug' => 'portfolio', //url slug for portfolio items
					),
			'supports' => $supports, //post features supported by portfolios
			'labels' => $labels // various labels used in admin interface
		);
		
		//register our portfolio custom post type
		register_post_type('portfolio', $portfolio_args);
	}

?>